package com.xxgc.eow.mapper;

import com.xxgc.eow.entity.Notice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 通知表 Mapper 接口
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-28
 */
@Mapper
public interface NoticeMapper extends BaseMapper<Notice> {

    List<Notice> selectByNotifiedId(int notifiedId);

    int delNotice(@Param("destroyTime") LocalDateTime destroyTime, @Param("noticeId") int noticeId);

    List<Notice> selectAll();
}
